package com.winter.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Jinhao
 * @create 2022/11/02 15:35
 * @description
 */
@FeignClient(name = "deal-service")
public interface DealServiceFeign {

    /**
     * 测试数据获取
     *
     * @return 数据
     */
    @GetMapping("/test/get/all")
    List<Object> getAll();

    /**
     * 参数传递注解测试
     *
     * @param test 测试参数
     * @return string
     */
    @GetMapping("/deal/test/transmit/param")
    String testTransmitParam(String test);

    /**
     * 测试tag
     *
     * @param body body
     */
    @PostMapping("/test/tag/return/deal")
    void dealTag(@RequestParam("body") String body);
}
